package com.uwo.commons.configuration.aop.validate.annotation;

import java.lang.annotation.*;

/**
 * 正则格式校验
 * @author hao.yan
 */
@Documented
@Target({
        ElementType.METHOD,
        ElementType.FIELD,
        ElementType.ANNOTATION_TYPE,
        ElementType.CONSTRUCTOR,
        ElementType.PARAMETER
})
@Retention(RetentionPolicy.RUNTIME)
public @interface Pattern {

    String pattern() default "";

    int code() default 10003;

    String message() default "";

}
